<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>购物车页面</title>
    <style>
      .food-box {
        width: 600px;
        height: 500px;
        margin: 20px auto;
        background-color: #fff;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        overflow: hidden;
      }
      .food-header {
        background-color: #f0f0f0;
        padding: 10px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        button {
          padding: 5px 10px;
          border: none;
          background-color: #f0f0f0;
          cursor: pointer;
          border-radius: 15px;
          font-size: 14px;
        }
      }

      .food-items {
        padding: 0;
        list-style: none;
        height: 350px;
      }
      .food-items li {
        display: flex;
        justify-content: space-between;
        padding: 10px 15px;
        border-bottom: 1px solid #e5e5e5;
      }
      .food-buttons {
        display: flex;
        padding: 10px 15px;
        width: 100%;
        height: 50px;
        background-color: rgb(1, 1, 37);
        .button {
          width: 100%;
          height: 100%;
          color: #fff;
          display: flex;
          position: relative;
          justify-content: space-between;
          align-items: center;
          position: relative;
          .img {
            position: absolute;
            top: -25px;
            left: 30px;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            overflow: hidden;
            img {
              width: 50px;
              height: 50px;
            }
          }
          .Price {
            width: 200px;
            margin-left: 100px;
          }
          .money {
            width: 150px;
            height: 70px;
            text-align: center;
            line-height: 70px;
            background-color: red;
            margin-right: 15px;
          }
        }
      }
    </style>
  </head>
  <body>
    <main class="food-box">
      <header class="food-header">
        <span>已选商品</span>
        <button>清空</button>
      </header>
      <ul class="food-items">
        <li>
          <span class="item-name">肉沫茄子盖饭</span>
          <span class="item-price" style="color: red; font-weight: 900px"
            >￥15.88</span
          >
          <span>
            <button
              style="
                border-radius: 50%;
                border: solid 1px rgb(249, 158, 84);
                color: rgb(249, 158, 84);
                background-color: white;
                cursor: pointer;
              "
            >
              -
            </button>
            <span id="count1">1</span>
            <button
              style="
                border-radius: 50%;
                border: solid 1px rgb(249, 158, 84);
                color: white;
                background-color: rgb(249, 158, 84);
                cursor: pointer;
              "
            >
              +
            </button>
          </span>
        </li>
        <li>
          <span class="item-name">台式卤肉双拼套餐</span>
          <span class="item-price" style="color: red; font-weight: 900px"
            >￥20.88</span
          >
          <span>
            <button
              style="
                border-radius: 50%;
                border: solid 1px rgb(249, 158, 84);
                color: rgb(249, 158, 84);
                background-color: white;
                cursor: pointer;
              "
            >
              -
            </button>
            <span id="count1">1</span>
            <button
              style="
                border-radius: 50%;
                border: solid 1px rgb(249, 158, 84);
                color: white;
                background-color: rgb(249, 158, 84);
                cursor: pointer;
              "
            >
              +
            </button>
          </span>
        </li>
      </ul>
      <aside class="food-buttons">
        <section class="button">
          <span class="img"
            ><img src="./微信截图_20240818231913.png" alt="" /></span
          ><span class="Price">总计：￥36.76</span
          ><span class="money">去结算</span>
        </section>
      </aside>
    </main>
  </body>
</html>
